package com.sichen.auth.feign;

import com.sichen.auth.vo.SocialUserVo;
import com.sichen.auth.vo.UserLoginVo;
import com.sichen.auth.vo.UserRegistVo;
import com.sichen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户服务的远程调用接口
 * <p>Created with IntelliJ IDEA.
 * <p>Author: 思尘
 * <p>Created time: 2022-09-21 15:19
 * <p>Version: V1.0
 */
@FeignClient("sichen-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(@RequestBody SocialUserVo socialUserVo) throws Exception;
}
